﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Demo05131
{
    class SumUtils
    {
        
        public int SumUtit(int a,int b) 
        {
            //整数
            return a + b;
        }
        public double SumUtit(double num1,double num2)
        {
            //小数
            return num1 + num2;
        }
        public string SumUtit(string c,string e)
        {
            //字符串
            return c+ e;
        }
        public int SumUtit(int num) 
        {
            int sum = 0;
            for (int i = 1; i <= num; i++)
            {
                sum = sum + i;
            }
             
            return sum;
        }
    }
}
